<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加补发记录</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
<script type="text/javascript">
	name="payoff";
	function check(){
		var frm = document.form1;
		if(frm.payoffPensonNum.value == ""){
			alert("请输入补发人数！");
			frm.payoffPensonNum.focus();
			return false;
		}
		if(isNaN(frm.payoffPensonNum.value )){
			alert("补发人数应为数字！");
			frm.payoffPensonNum.focus();
			return false;
		}
		if(frm.payoffMoney.value == ""){
			alert("请输入补发金额！");
			frm.payoffMoney.focus();
			return false;
		}
		if(isNaN(frm.payoffMoney.value )){
			alert("补发金额应为数字！");
			frm.payoffMoney.focus();
			return false;
		}
		if(frm.payoffDate.value == ""){
			alert("请选择补发日期！");
			return false;
		}
	}
</script>
</head>

<body>
<form name="form1" action="<%=request.getContextPath()%>/Payoff.do?method=addPayoff" method="post" target="payoff" onsubmit="return check()">&nbsp; 
<input type="hidden" value="${param.bid}" name="backPayId">
<table width="100%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>补发人数：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="payoffPensonNum" maxlength="10"/>&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>补发金额：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="payoffMoney" maxlength="50"/>&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>补发日期：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="payoffDate" size="9" onclick="SelectDate(this,'yyyy-MM-dd')" readonly/>&nbsp;</td>
  </tr>
  <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonsubmit" type="submit" value="提交">&nbsp;<input class="buttonreset" type="reset" value="重置"> <input class="buttonnormal" type="button" value="关闭" onClick="javascript:window.close()"></td>
  </tr>
</table>
</form>
</body>
</html>
